package com.cn.goodsadmin.util;


import com.cn.goodsadmin.config.BaseConfig;

public class UrlUtil {

    //../webapps/image/15018308125603BE4FF444660C95556F55431B963DF5D.jpg
    //download?baseconfig+filename
    public static String coverUrl(String ourl){
        //找到webapps
        return BaseConfig.host+"download?filePath="+ourl;
    }

    //根据fav生成idlist
    public static String[] coverFav(String fav) {
        if (fav != null && fav.trim().length() > 0) {
            String[] favs = fav.split(",");
            return favs;
        }
        return null;
    }
}
